creation amount of PO for all in dashboard   (sum(po.total) column add by shahzaib)

recieving should be updated                  (po-wise-recieving se show krana hy) --pending

recieving should be updated  (backend)  --done

purchase status would update after recieving just like payment (backend + frontend)

look into the Purchase values in the admin dashboard

payment is missing from me to vendor in purchase order report (backend + frontend)

Refund part









if someone delete purchase order it should delete its recieving and return and payment logs as well

if user is admins show every thign if not then show purchase order return recievign and payment only created by him 

document uplaod in po

po detail view where we see logs need this api



payment according to quantity is recieved 12
payment according to quantity is returned 2
payment according to total of quantity    10

payment which we paid nad remaining

total payment paid
total paymetn dues 

100 q 10 
po 100
pauemnt paid 50
pending amount 50
recieve 5 quantity




total paymetn dues on vendor  (it will be like this total payment - total payment paid + total payment dues - payment.recieved amount)



pr reciving mn update krta time current ki quantity minus kr k update attempt ko add kr dn 





total amount paid to vendor

payment according to quantity is recieved 

payment according to quantity returned


payment according to total quantity in purchase order

total due on us 

total due on vendor

